package GameWorld;
//水雷潜艇
import javax.swing.*;

public class MineSubmarine extends SeaObject implements EnemLife{

    MineSubmarine(){
        super(63,19);
    }
    public void  move(){
        x+=speed;
    }
    public ImageIcon getImage(){
        return  Images.minesubm;
    }


    public Mine shootMine(){
        int x = this.x+this.width;
        int y= this.y-5;
        return new Mine(x,y);
    }

    public int getLife(){
        return 1;
    }
}
